
import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/search`,
}

export const detailsApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/detailTabSearch`,
}

// 明细查询
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/detail?id=${data.id}`,
    method: 'get'
  })
}

// 352明细查询
export function details352Query(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/detail352?id=${data.id}`,
    method: 'get'
  })
}

// 353明细查询
export function details353Query(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/detail353?id=${data.id}`,
    method: 'get'
  })
}

// 审核
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/approve`,
    method: 'post',
    data
  })
}

// 拒绝
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageQuery/reject`,
    method: 'post',
    data
  })
}